package com.oracle.jimu.service;

import java.util.List;

import com.oracle.jimu.bean.Attr;
import com.oracle.jimu.bean.ProductAttr;
import com.oracle.jimu.dao.AttrDao;

public class AttrServiceImpl implements AttrService {
    private AttrDao attrDao;

	/**
	 * @return the attrDao
	 */
	public AttrDao getAttrDao() {
		return attrDao;
	}

	/**
	 * @param attrDao the attrDao to set
	 */
	public void setAttrDao(AttrDao attrDao) {
		this.attrDao = attrDao;
	}

	@Override
	public List<Attr> attrList() {
		// TODO Auto-generated method stub
		return attrDao.attrList();
	}

	@Override
	public void addAttr(Attr attr) {
		// TODO Auto-generated method stub
		attrDao.addAttr(attr);
	}

	@Override
	public void deleteAttr(Integer attrid) {
		// TODO Auto-generated method stub
		attrDao.deleteAttr(attrid);
	}

	@Override
	public void addProdAttr(ProductAttr prodAttr) {
		// TODO Auto-generated method stub
		attrDao.addProdAttr(prodAttr);
		
	}

	@Override
	public void deleteProdAttr(Integer id) {
		// TODO Auto-generated method stub
		attrDao.deleteProdAttr(id);
	}
    
}
